package com.be.beadmin.project.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @Description: 文件管理
 * @author: Mengyang Zhu
 * @Date: Create in 14:11 2023/1/12
 **/
@Entity
@Table(name="T_PM_FileInfo")
@Getter
@Setter
public class FileInfo extends BaseEntity {


    /**
     * 关联主表ID
     */
    @Column(name = "infoId",columnDefinition = "VARCHAR(50) COMMENT '项目id' not null")
    private String infoId;

    @Column(name = "projectName",columnDefinition = "VARCHAR(50) COMMENT '项目名称' not null")
    private String projectName;

    @Column(name = "serialNo",columnDefinition = "VARCHAR(50) COMMENT '流水号'  not null")
    private String serialNo;
    @Column(name = "fileCode",columnDefinition = "VARCHAR(50) COMMENT '文件编码'  not null")
    private String fileCode;
    @Column(name = "fileName",columnDefinition = "VARCHAR(255) COMMENT '文件名称'  not null")
    private String fileName;
    @Column(name = "bucketName",columnDefinition = "VARCHAR(255) COMMENT 'MinIO中的bucketName' ")
    private String bucketName;

    @Column(name = "category",columnDefinition = "VARCHAR(255) COMMENT '文件类别' ")
    private String category;
    @Column(name = "fileSize",columnDefinition = "decimal(10,0) COMMENT '文件大小' ")
    private BigDecimal fileSize;
    @Column(name = "fileExtEndDate",columnDefinition = "VARCHAR(50) COMMENT '文件后缀' ")
    private String fileExtEndDate;

    @Column(name = "memo",columnDefinition = "VARCHAR(50) COMMENT '备注' ")
    private String memo;
    @Column(name = "reserved",columnDefinition = "VARCHAR(50) COMMENT '预留' ")
    private String reserved;

    @Column(name = "version",columnDefinition = "varchar(50) COMMENT '版本号'")
    private String version;
}
